require(["../../conf/config.js"],function(){
	require(["jquery", "swiper", "commen"],function($, Swiper, commen){
		/* 顶部导航二级菜单 */
		commen.navManu();
		/* 搜索框默认内容 搜索推荐 */
		commen.searchDefauContent();
		/* 第一个轮播 */
		new Swiper("#swiper1",{
			autoplay: true,
			scrollbar: {
				el: '.swiper-scrollbar',
			},
		})
		commen.classifyButton();
		commen.noticeContent();
		commen.runLine();
		commen.hotzoneplateContent("#hotzone .container");
		commen.hotzoneplateContent1("#hotzone1 .container");
		commen.screenSlide("#screenslide");
		commen.absorbTop("#logo");
		
		function leftElevator(){
			$("#leftElevator li:lt(4)").on("mouseenter", function(){
				$("#slide-box").stop().animate({top: ($(this).index())*40});
				$("#slide-box").text($(this).text());
			})
			$("#leftElevator").on("mouseleave", function(){
				$("#slide-box").stop().animate({top: 0});
				$("#slide-box").text("中西药品");
			})
			
		}
		function backTop(selector){
			$(selector).on("click", function(){
				$(document).scrollTop() = 0;
			})
		}
		backTop("#backTop");
		leftElevator()
	});
	
})